package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class ClassesSubjectPageVo {
    /**
     * 班级课程表id
     */
    private Integer classesSubjectId;

    /**
     * 班级id
     */
    private Integer classesId;

    /**
     * 课程id
     */
    private Integer subjectId;

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassesSubjectPageVo that = (ClassesSubjectPageVo) o;
        return Objects.equals(classesSubjectId, that.classesSubjectId) && Objects.equals(classesId, that.classesId) && Objects.equals(subjectId, that.subjectId) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classesSubjectId, classesId, subjectId, pageSize, page);
    }

    @Override
    public String toString() {
        return "ClassesSubjectPageVo{" +
                "classesSubjectId=" + classesSubjectId +
                ", classesId=" + classesId +
                ", subjectId=" + subjectId +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }
}
